<template>
	<div id="app">
		<div class="main">
			<router-view />
		</div>
	</div>
</template>

<script>
import { qs } from '@/utils/tools'
import { setStorage } from '@/utils/storage'
import { setToken } from '@/utils/user'
export default {
  created() {
    const params = qs()

    if (params.token) {
      setToken(params.token)
    }
    setStorage('pathParam', JSON.stringify(params))
  }
}
</script>
<style lang="scss">
.main {
  width: 100%;
}
</style>
